package com.aidong.carnival.service;

import com.aidong.carnival.entity.Message;

public interface AllCampaignService {
	/**
	 * 商品购买
	 * @param ruleId 规则ID
	 * @param goodsType 类型
	 * @param quantity 数量
	 * @param buyDate 购买日期
	 * @param IdongId 爱动号
	 * @param contactName 姓名
	 * @param contactPhone 联系电话
	 * @return
	 */
	public Message addFoodBuy(int ruleId,int goodsType,int quantity,int addressId,String buyDate,int IdongId,String contactName,String contactPhone,int pickUpAway) throws Exception;
	
	/**
	 * 活动购买
	 * @param ruleId
	 * @param addressId
	 * @param IdongId
	 * @param contactName
	 * @param contactPhone
	 * @return
	 * @throws Exception
	 */
	public Message addCampaignBuy(int ruleId,int addressId,int idongId,String contactName,String contactPhone) throws Exception;
	
	/**
	 * 课程购买
	 * @param ruleId
	 * @param idongId
	 * @return
	 * @throws Exception
	 */
	public Message addScheduleBuy(int ruleId,int idongId,String phone,String name) throws Exception;
}
